package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @className OrderSettingMapper
 */
@Mapper
public interface OrderSettingMapper {

    @Update("update t_ordersetting set number = #{number} where orderDate = #{orderDate}")
    void updateNumberByOrderDate(OrderSetting orderSetting); //修改预约人数

    List<OrderSetting> selectOrderSettingByMonth(String month); //根据月份查询预约人数

    void batchInsert(@Param("Lists") List<OrderSetting> orderSettingList); //批量插入预约人数
}
